home *** CD-ROM | disk | FTP | other *** search
/ Champak 142 / Volume 142 Oct 17 2011 - Damaged.iso / Interface / it.dig / scripts / DefineSprite_296 / frame_2 / PlaceObject2_40_Button_7 / CLIPACTIONRECORD onClipEvent(load).as < prev   
Text File  |  2011-10-17  |  738b  |  26 lines

  1. onClipEvent(load){
  2.    function __f_click(eventObj)
  3.    {
  4.       var _loc3_ = _root.descri.caminho.text;
  5.       _loc3_ = _loc3_.substring(_loc3_.length - 3,_loc3_.length);
  6.       if(_loc3_ == "exe")
  7.       {
  8.          trace(_root.descri.caminho.text);
  9.          getURL("FSCommand:Run.app","%ORG%" + _root.descri.caminho.text);
  10.       }
  11.       else if(_loc3_ == "swf")
  12.       {
  13.          getURL("FSCommand:Run.App","App %ORG%" + _root.descri.caminho.text);
  14.       }
  15.       else if(_root.descri.comando.text == "LINK")
  16.       {
  17.          getURL(this.caminho.text,"");
  18.       }
  19.       else
  20.       {
  21.          getURL("FSCommand:Shellopen","%ORG%" + _root.descri.caminho.text);
  22.       }
  23.    }
  24.    this.addEventListener("click",__f_click);
  25. }
  26.